package com.test;

import com.project.bean.ProductBean;
import com.project.service.IProductService;
import com.project.service.impl.ProductServiceImpl;

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;

public class testMain {
    public static void main(String[] args) {
        IProductService service = new ProductServiceImpl();
//        System.out.println(service.addProduct(new ProductBean("机枪", LocalDate.parse("2002-03-09"),20000)));
//        service.del(14);
//        service.update(12,222);
//        System.out.println(service.findById(3));
//        System.out.println(service.findByName("电"));\
//        System.out.println(service.findByItem("电",LocalDate.parse("2021-01-01"),null));
//        System.out.println(service.cutByItem(1,null,null,null));

//        List<ProductBean> list = new ArrayList<>();
//        list.add(new ProductBean("旺仔牛奶",LocalDate.parse("2022-03-04"),5));
//        list.add(new ProductBean("陈仁亮",LocalDate.parse("1999-03-27"),5));
//        list.add(new ProductBean("牛奶",LocalDate.parse("2022-03-04"),15));
//        list.add(new ProductBean("旺仔陈仁亮",LocalDate.parse("1999-03-04"),25));
//
//        service.addMore(list);

        int[] array = new int[]{5, 6, 7};
        service.delMore(array);
    }


}
